﻿/**
 * 登录页
 * */
const login = '/login/index';

/**
 * 首页
 * */
const home = '/home/layout';

/**
 * 接口地址
 * */
const ApiUrl = {

    Login: {

        Input: {
            url: '/login.input'
            , method:'get'
        }
    }

    , Home: {
        tokenHealthy: {
            url: '/lanbt.home.token.healthy'
            , method: 'get'
        }
        , homeTest: {
            url: '/lanbt.home.test'
            , method: 'post'
        }
        , homeCurrentUserGet: {
            url: '/lanbt.home.current.user.get'
            , method: 'get'
        }
        , signOut: {
            url: '/lanbt.home.sign.out'
            , method: 'get'
        }
        , Unlock: {
            url: '/lanbt.home.unlock'
            , method: 'get'
        }
    }

    , LanbtUser: {
        UserInfo: {
            url: '/lanbt.system.manager.user.info.get'
            , method: 'get'
        },
        userSearch: {
            url: '/lanbt.system.manager.users.list.pages.query'
            , method: 'get'
        }
        , userOneDelete: {
            url: '/lanbt.system.manager.users.one.delete'
            , method: 'delete'
        }
        , userBatchDelete: {
            url: '/lanbt.system.manager.users.batch.delete'
            , method: 'delete'
        }
        , userInsert: {
            url: '/lanbt.system.manager.users.insert'
            , method: 'post'
        }
        , userUpdate: {
            url: '/lanbt.system.manager.users.update'
            , method: 'put'
        }
        , userIsadminUpdate: {
            url: '/lanbt.system.manager.users.isadmin.update'
            , method: 'put'
        }
        , userRoleidsUpdate: {
            url: '/lanbt.system.manager.users.roleids.update'
            , method: 'put'
        }
        , userPasswordUpdate: {
            url: '/lanbt.system.manager.user.password.update'
            , method: 'put'
        }
        , userRoleidsQuery: {
            url: '/lanbt.system.manager.users.roleids.query'
            , method: 'get'
        }
    }
    
    , LanbtRole: {
        Search: {
            url: '/lanbt.system.manager.role.list.pages.query'
            , method: 'get'
        }
        , PowerTreeData: {
            url: '/lanbt.system.manager.role.power,tree.query'
            , method: 'get'
        }
        , DeleteOneById: {
            url: '/lanbt.system.manager.role.one.delete'
            , method: 'delete'
        }
        , DeleteManyByIds: {
            url: '/lanbt.system.manager.role.batch.delete'
            , method: 'delete'
        }
        , Insert: {
            url: '/lanbt.system.manager.role.insert'
            , method: 'post'
        }
        , Update: {
            url: '/lanbt.system.manager.role.update'
            , method: 'put'
        }
        , AssignPower: {
            url: '/lanbt.system.manager.role.assign.power.update'
            , method: 'put'
        }
    }

    , LanbtPower: {
        Search: {
            url: '/lanbt.system.manager.power.paged.query'
            , method: 'get'
        }
        , SelectQuery: {
            url: '/lanbt.system.manager.power.select.query'
            , method: 'get'
        }
        , GetById: {
            url: '/lanbt.system.manager.power.byid.get'
            , method: 'get'
        }
        , getMenuList: {
            url: '/lanbt.system.manager.power.menulist.query'
            , method: 'get'
        }
        , Insert: {
            url: '/lanbt.system.manager.power.insert'
            , method: 'post'
        }
        , DeleteOneById: {
            url: '/lanbt.system.manager.power.one.delete'
            , method: 'delete'
        }
        , DeleteManyByIds: {
            url: '/lanbt.system.manager.power.batch.delete'
            , method: 'delete'
        }
        , Update: {
            url: '/lanbt.system.manager.power.update'
            , method: 'put'
        }
        , UpdateIsMenuShow: {
            url: '/lanbt.system.manager.power.ismenushow.update'
            , method: 'put'
        }
        , UpdateIsEnable: {
            url: '/lanbt.system.manager.power.isenable.update'
            , method: 'put'
        }
    }

    , DataBase: {
        CreateDatabase: {
            url: '/lanbt.system.manager.database.create'
            , method: 'post'
        }
        , CreateTables: {
            url: '/lanbt.system.manager.database.tables.create'
            , method: 'post'
        }
        , CreateAdminUser: {
            url: '/lanbt.system.manager.database.admin.add'
            , method: 'post'
        }
    }

    , QuartzAPI: {
        GetJobDetail: {
            url: '/lanbt.quartz.job.detail.get'
            , method: 'get'
        }
        , GetException: {
            url: '/lanbt.quartz.job.exception.get'
            , method: 'get'
        }
        , QueryJobAll: {
            url: '/lanbt.quartz.job.quary'
            , method: 'get'
        }
        , GetLogList: {
            url: '/lanbt.quartz.job.loglist.query'
            , method: 'get'
        }
        , MailText: {
            url: '/lanbt.quartz.config.mail.text'
            , method: 'post'
        }
        , AddJob: {
            url: '/lanbt.quartz.job.add'
            , method: 'post'
        }
        , ResumeJob: {
            url: '/lanbt.quartz.job.resume'
            , method: 'put'
        }
        , PauseJob: {
            url: '/lanbt.quartz.job.pause'
            , method: 'put'
        }
        , UpdateJob: {
            url: '/lanbt.quartz.job.update'
            , method: 'put'
        }
        , DeleteJob: {
            url: '/lanbt.quartz.job.delete'
            , method: 'delete'
        }
    }

    , Config: {
        GetSystemConfig: {
            url: '/lanbt.system.config.get'
            , method: 'get'
        }
        , GetUserConfig: {
            url: '/lanbt.user.config.get'
            , method: 'get'
        }
        , OperationConfig: {
            url: '/lanbt.config.operation'
            , method: 'post'
        }
        , DeleteSystemConfig: {
            url: '/lanbt.system.config.delete'
            , method: 'delete'
        }
        , DeleteUserConfig: {
            url: '/lanbt.user.config.delete'
            , method: 'delete'
        }
    }
}